<%--
  - Author		:	Jaewon Choi
  - Date			:
  - Description	:	
  --%>
<%@ page language="java" %>
<%@ page contentType="text/html; charset=utf-8" %>
<%@ page pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/pages/includes/taglibs.jspf" %>
<%@ include file="/WEB-INF/pages/includes/variables.jspf" %>
<%@ include file="/WEB-INF/pages/includes/doctype.jspf" %>
<html>
	<head>
<%@ include file="/WEB-INF/pages/includes/metatags.jspf" %>
		<title><fmt:message key="pages.title" /></title>
		<link rel="stylesheet" type="text/css" href="<c:url value="${dirStyles}/common.css" />" />
		<link rel="stylesheet" type="text/css" href="<c:url value="${dirScripts}/jqueryUi/css/ui-lightness/jquery-ui-1.8.21.custom.css" />" />

		<script type="text/javascript" src="<c:url value="${dirScripts}/jquery-1.7.2.min.js" />"></script>
		<script type="text/javascript" src="<c:url value="${dirScripts}/jquery-ui-1.8.21.custom.min.js" />"></script>
		<script type="text/javascript">
			$(function() {
				<c:choose>
					<c:when test="${param.fAct eq 'remove'}">
						document.listFrm.submit();
					</c:when>
					<c:otherwise>
						document.frm.submit();
					</c:otherwise>
				</c:choose>
			});
		</script>
	</head>
	<body>
		<form name="frm" action="<c:url value="/ad/detail.do" />" method="post" style="display: none;">
			<input type="hidden" name="fAct" value="view">
			<input type="hidden" name="idx" value="${advertising.idx}">
			<input type="hidden" name="maxnum" value="${param.maxnum}" />
			<input type="hidden" name="page" value="${param.page}" />
			<input type="hidden" name="searchDate" value="${param.searchDate}">
			<input type="hidden" name="startDate" value="${param.startDate}" /> 
			<input type="hidden" name="endDate" value="${param.endDate}" />
			<input type="hidden" name="searchName" value="${param.searchName}" />
			<input type="hidden" name="searchCategoryIdx" value="${param.searchCategoryIdx}" />
		</form>
		<form name="listFrm" action="<c:url value="/ad/list.do" />" method="post" style="display: none;">
			<input type="hidden" name="maxnum" value="${param.maxnum}" />
			<input type="hidden" name="page" value="${param.page}" />
			<input type="hidden" name="searchDate" value="${param.searchDate}">
			<input type="hidden" name="startDate" value="${param.startDate}" /> 
			<input type="hidden" name="endDate" value="${param.endDate}" />
			<input type="hidden" name="name" value="${param.searchName}" />
			<input type="hidden" name="categoryIdx" value="${param.searchCategoryIdx}" />
		</form>
		
	</body>
</html> 